package com.songcha.module_mine.ui.activity

import android.os.Bundle
import android.view.View

import android.view.WindowInsets
import androidx.core.view.OnApplyWindowInsetsListener
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.songcha.library_base.base.BaseActivity
import com.songcha.library_common.util.JumpUtil
import com.songcha.module_mine.R
import com.songcha.module_mine.databinding.MineActivityMainBinding
import com.songcha.module_mine.ui.activity.setting.SettingActivity
import com.songcha.module_mine.ui.activity.userinfo.UserInfoActivity
import com.songcha.module_mine.ui.fragment.mine.MineFragment


class MainActivity :BaseActivity() {
    /*override fun getLayoutId(): Int {
        return R.layout.mine_activity_main
    }*/

    lateinit var binding:MineActivityMainBinding

    override fun getRootView(): View? {
        //return super.getRootView()
        binding=MineActivityMainBinding.inflate(layoutInflater)
        return binding.root
    }

    override fun isImmerseStatusBar(): Boolean {
        return true
    }

    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)
        val trans=supportFragmentManager.beginTransaction()
        trans.replace(R.id.mine_frag, MineFragment())
        trans.commit()

        //JumpUtil.toActivity(this,UserInfoActivity::class.java)
    }
}